import request from '/@/utils/request';

export function orderApi() {
	return {
		view: (id: string) => {
			return request({
				url: `/management/order/view/${id}`,
				method: 'GET',
			});
		},
		search: (data: any) => {
			return request({
				url: `/management/order/search`,
				method: 'POST',
				data,
			});
		},
		updateStatus: (data: any) => {
			return request({
				url: `/management/order/updatestatus`,
				method: 'POST',
				data,
			});
		},
		remark: (data: any) => {
			return request({
				url: `/management/order/remark`,
				method: 'POST',
				data,
			});
		},

		sendGoods: (data: any) => {
			return request({
				url: `/management/order/sendgoods`,
				method: 'POST',
				data,
			});
		},
		updatePrice: (data: any) => {
			return request({
				url: `/management/order/updateprice`,
				method: 'POST',
				data,
			});
		},
		viewUpdatePrice: (id: string) => {
			return request({
				url: `/management/order/view/updateprice/${id}`,
				method: 'GET',
			});
		},
	};
}
